package com.example.myapplication;

import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.EditText;
import android.widget.RelativeLayout;

import com.example.myapplication.base.BaseActivity;
import com.example.myapplication.view.CustomNumKayUtils;

public class LoginActivity extends BaseActivity{
    private EditText et_name;
    private EditText et_pwd;
    private RelativeLayout rl_root;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);

        initView();
    }

    private void initView() {
        et_name = findViewById(R.id.et_name);
        et_pwd = findViewById(R.id.et_pwd);

        rl_root = findViewById(R.id.rl_root);

        CustomNumKayUtils.init().initKeyBoad(et_pwd,mContext,rl_root);

//        new Handler().postDelayed(new Runnable() {
//            @Override
//            public void run() {
//                CustomNumKayUtils.init().show(mContext);
//            }
//        },3000);
    }

    public void test(View view){
        CustomNumKayUtils.init().show(mContext);
    }

    @Override
    protected void onResume() {
        super.onResume();
        CustomNumKayUtils.init().show(mContext);
    }
}
